<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<script type="text/javascript">
$(document).ready(function(){
    	if(location.href.indexOf("load=detail")!=-1){
			$(":input").attr("disabled","true");
		}
    });
</script>
<div style="width: auto;height: 300px;overflow-y:auto;overflow-x:auto;">
<table cellpadding="0" cellspacing="1" class="formtable" id="xmDemandstruct_table" >
	<tbody id="add_xmDemandstruct_table" >	
	<c:if test="${fn:length(xmDemandstructList)  <= 0 }">
			<tr>
					<input name="xmDemandstructList[0].id" type="hidden"  value="${poVal.id}"/>
					<input name="xmDemandstructList[0].placeId" type="hidden"  value="${poVal.placeId}"/>
			</tr>
				<tr>
				  <td align="right">
					<label class="Validform_label">
										需求结构名称:
									</label>
					</td>
				  <td class="value">
					  	<input name="xmDemandstructList[0].demandname" maxlength="32" type="text" class="inputxt"  ignore="ignore" />
					  <label class="Validform_label" style="display: none;">需求结构名称</label>
					</td>
				  <td align="right">
					<label class="Validform_label">
										化工造纸:
									</label>
					</td>
				  <td class="value">
					  	<input name="xmDemandstructList[0].chemical" maxlength="32" type="text" class="inputxt"  ignore="ignore" />
					  <label class="Validform_label" style="display: none;">化工造纸</label>
					</td>
				</tr>
				<tr>
				  <td align="right">
					<label class="Validform_label">
										建材行业:
									</label>
					</td>
				  <td class="value">
					  	<input name="xmDemandstructList[0].buildingmaterial" maxlength="32" type="text" class="inputxt"  ignore="ignore" />
					  <label class="Validform_label" style="display: none;">建材行业</label>
					</td>
				  <td align="right">
					<label class="Validform_label">
										电力行业:
									</label>
					</td>
				  <td class="value">
					  	<input name="xmDemandstructList[0].powerindustry" maxlength="32" type="text" class="inputxt"  ignore="ignore" />
					  <label class="Validform_label" style="display: none;">电力行业</label>
					</td>
				</tr>
				<tr>
				  <td align="right">
					<label class="Validform_label">
										冶焦炼陶:
									</label>
					</td>
				  <td class="value">
					  	<input name="xmDemandstructList[0].cokesmelting" maxlength="32" type="text" class="inputxt"  ignore="ignore" />
					  <label class="Validform_label" style="display: none;">冶焦炼陶</label>
					</td>
				  <td align="right">
					<label class="Validform_label">
										其它:
									</label>
					</td>
				  <td class="value">
					  	<input name="xmDemandstructList[0].other" maxlength="32" type="text" class="inputxt"  ignore="ignore" />
					  <label class="Validform_label" style="display: none;">其它</label>
					</td>
				</tr>
				<tr>
				  <td align="right">
					<label class="Validform_label">
										日期:
									</label>
					</td>
				  <td class="value">
						<input name="xmDemandstructList[0].createTime" maxlength="0" type="text" class="Wdate" onClick="WdatePicker()"  ignore="ignore" />
					  <label class="Validform_label" style="display: none;">日期</label>
					</td>
				  <td align="right">
					<label class="Validform_label">
										市名称:
									</label>
					</td>
				  <td class="value">
					  	<input name="xmDemandstructList[0].areaname" maxlength="32" type="text" class="inputxt"  ignore="ignore" />
					  <label class="Validform_label" style="display: none;">市名称</label>
					</td>
				</tr>
	</c:if>
	<c:if test="${fn:length(xmDemandstructList)  > 0 }">
		<c:forEach items="${xmDemandstructList}" var="poVal" varStatus="stuts" begin="0" end="0">
			<tr>
					<input name="xmDemandstructList[0].id" type="hidden" value="${poVal.id}"/>
					<input name="xmDemandstructList[0].placeId" type="hidden" value="${poVal.placeId}"/>
			</tr>
			<tr>
				  <td align="right">
					<label class="Validform_label">
										需求结构名称:
									</label>
					</td>
				  <td class="value">
					  	<input name="xmDemandstructList[0].demandname" maxlength="32" type="text" class="inputxt"  ignore="ignore"  value="${poVal.demandname }"/>
					  <label class="Validform_label" style="display: none;">需求结构名称</label>
					</td>
				  <td align="right">
					<label class="Validform_label">
										化工造纸:
									</label>
					</td>
				  <td class="value">
					  	<input name="xmDemandstructList[0].chemical" maxlength="32" type="text" class="inputxt"  ignore="ignore"  value="${poVal.chemical }"/>
					  <label class="Validform_label" style="display: none;">化工造纸</label>
					</td>
				</tr>
			<tr>
				  <td align="right">
					<label class="Validform_label">
										建材行业:
									</label>
					</td>
				  <td class="value">
					  	<input name="xmDemandstructList[0].buildingmaterial" maxlength="32" type="text" class="inputxt"  ignore="ignore"  value="${poVal.buildingmaterial }"/>
					  <label class="Validform_label" style="display: none;">建材行业</label>
					</td>
				  <td align="right">
					<label class="Validform_label">
										电力行业:
									</label>
					</td>
				  <td class="value">
					  	<input name="xmDemandstructList[0].powerindustry" maxlength="32" type="text" class="inputxt"  ignore="ignore"  value="${poVal.powerindustry }"/>
					  <label class="Validform_label" style="display: none;">电力行业</label>
					</td>
				</tr>
			<tr>
				  <td align="right">
					<label class="Validform_label">
										冶焦炼陶:
									</label>
					</td>
				  <td class="value">
					  	<input name="xmDemandstructList[0].cokesmelting" maxlength="32" type="text" class="inputxt"  ignore="ignore"  value="${poVal.cokesmelting }"/>
					  <label class="Validform_label" style="display: none;">冶焦炼陶</label>
					</td>
				  <td align="right">
					<label class="Validform_label">
										其它:
									</label>
					</td>
				  <td class="value">
					  	<input name="xmDemandstructList[0].other" maxlength="32" type="text" class="inputxt"  ignore="ignore"  value="${poVal.other }"/>
					  <label class="Validform_label" style="display: none;">其它</label>
					</td>
				</tr>
			<tr>
				  <td align="right">
					<label class="Validform_label">
										日期:
									</label>
					</td>
				  <td class="value">
							<input name="xmDemandstructList[0].createTime" maxlength="0" type="text" class="Wdate" onClick="WdatePicker()"  ignore="ignore"  value="<fmt:formatDate value='${poVal.createTime}' type="date" pattern="yyyy-MM-dd"/>"/>
					  <label class="Validform_label" style="display: none;">日期</label>
					</td>
				  <td align="right">
					<label class="Validform_label">
										市名称:
									</label>
					</td>
				  <td class="value">
					  	<input name="xmDemandstructList[0].areaname" maxlength="32" type="text" class="inputxt"  ignore="ignore"  value="${poVal.areaname }"/>
					  <label class="Validform_label" style="display: none;">市名称</label>
					</td>
				</tr>
		</c:forEach>
	</c:if>	
	</tbody>
</table>
</div>